GIT branch 分支


Posted by fang on 2020-06-19

常見指令

  • git branch -v: 看出現在有幾條branch

master 代表最主要的branch

  • git branch + 分支名稱: 新增一個分支
  • git branch -d + 分支名稱: 刪除該分支
  • git checkout + 分支名稱: 轉換到該分支
  • git merge + 要被合併的分支名稱:把要被合併的分支名稱,加入現在位置的分支(ex.在master 位置輸入 git merge new-feature,將new-feature合併到master,更新master)
  • git branch -m + 分支名稱: 將目前所在分支重新命名為該分支名稱

#Git #branch







Related Posts

Inference, Prediction, and Forecast

Inference, Prediction, and Forecast

How to solve the perpetual loading issue in Evernote? Evernote 一直轉圈圈的解決辦法

How to solve the perpetual loading issue in Evernote? Evernote 一直轉圈圈的解決辦法

瞭解function-注意物件

瞭解function-注意物件


Comments